﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    
   class DeliveryRobot:Robot//传菜
    {
        private int time;
        public int Time { get; set; }
        public DeliveryRobot(string name,int time) : base(name)
        {
            this.time = time;
        }
        public DeliveryRobot()
        { 
            
        }
        public override void Working()
        {
            Console.WriteLine("我是{0}机器人\n我可以传菜{1}小时",Name,time);
        }
    }
}
